package cn.zymall.user.service.impl;

import cn.zymall.common.model.User;
import cn.zymall.user.mapper.UserMapper;
import cn.zymall.user.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @author xuxianda
 * @Description: 用户业务层实现类
 * @date 2020/8/16 19:51
 * @Copyright
 * @return
 **/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {


    @Autowired
    private UserMapper userMapper;


    @Override
    public List<User> queryCondition(String value) {

        if (value != null){
            return userMapper.queryCondition(value);
        }else{
            return null;
        }
    }

    @Override
    public User queryPhone(String phone) {
        return userMapper.queryPhone(phone);
    }


}
